package engine;


import objects.Player;
import gui.*;



public class Game {
	// ******** CLASS VARIABLES *************
	
	private static Player player;
	private static Combat combat;
	private static MainGUI gui;
	
	
	// ************* Constructor ***********
	 public Game(){
		  if (Main.debugMode){
			  player = new Player();
			  }
			  else{
				
				String name = MainGUI.playerInput("What is your Name?");
				String shipname = MainGUI.playerInput("What do you want to name your ship?");
		  
				player = new Player(name, shipname);
						
			  }//debug stuff
	}//end no parm Constructor
	
	
	
	
	
	// starts the game
	public void initGame(){
	
	  gui = new MainGUI();
	  	  
	  gui.drawMainFrame();
	  gui.drawBottomMain();
	/*  
	  if (Main.debugMode){
	  player = new Player();
	  }
	  else{
//Use popup for AWT now
		System.out.println("Turn on debug you idiot");  
	  }//setting up debug mode flags
	  
	  */
	  
	  /* In progress code
	  
	  
	  
	  
	  */
		 
		
	}// end initGame method
	

	
	
	//********** Other methods
	
	public static void startCombat(){
		combat = new Combat();	
	}//end startCombat
	
		
	//************************* Get Methods ************************
	
	public static Player getPlayer(){
		return player;
	}//end getPlayer
	
	public static Combat getCombat(){
		return combat;
	}// end getCombat
	
	public static MainGUI getGUI(){
		return gui;
	}// end
	
	
}//end class Game
